{template 'common/header'}
	<div class="clearfix">
		<div class="stat">
			<div class="stat-div">
				{template 'platform/stat-keyword_search'}
				<div class="sub-item panel panel-default" id="table-list">
					<div class="panel-heading">
						详细数据
					</div>
					<div class="sub-content panel-body table-responsive">
						<table class="table table-hover">
							<thead class="navbar-inner">
								<tr>
									<th style="width:100px;" class="row-hover">关键字<i></i></th>
									<th>规则<i></i></th>
									<th style="width:160px;">模块<i></i></th>
									<th style="width:80px;">命中次数<i></i></th>
									<th style="width:150px;">最后触发<i></i></th>
									<th style="width:100px;">操作</th>
								</tr>
							</thead>
							<tbody>
								{loop $list $row}
								<tr>
									<td class="row-hover">{$keywords[$row['kid']]['content']}</td>
									<td>
										{if empty($row['rid'])}
											N/A
										{else}
											<a target="main" href="{$rules[$row['rid']]['url']}">{$rules[$row['rid']]['name']}</a>
										{/if}
									</td>
									<td>{if $rules[$row['rid']]['module']}{$rules[$row['rid']]['module']}{else}default{/if}</td>
									<td>{$row['hit']}</td>
									<td style="font-size:12px; color:#666;">{php echo date('Y-m-d <br /> H:i:s', $row['lastupdate']);}</td>
									<td>
										<a target="main" href="{php echo url('platform/stat/trend', array('id' => $row['rid']))}" title="使用率走势">使用率走势</a>
									</td>
								</tr>
								{/loop}
							</tbody>
						</table>
					</div>
				</div>
				{$pager}
			</div>
		</div>
	</div>
{template 'common/footer'}
